package Logger;

import java.io.FileOutputStream;
import java.io.IOException;
import java.util.logging.FileHandler;
import java.util.logging.Logger;
import java.util.logging.SimpleFormatter;

import javax.lang.model.util.SimpleAnnotationValueVisitor6;

public class MainLogger {
	static Logger LOGGER;
	static String logFilepath;

	
	public MainLogger(String classname) {
//		try {
			LOGGER = Logger.getLogger(classname);
			SimpleFormatter sf = new SimpleFormatter();
			FileHandler handler;
//			handler = new FileHandler("/logs/mainlog.log", false);
//			handler.setFormatter(new SimpleFormatter());
//			LOGGER.addHandler(handler);

//		} catch (IOException e) {
//			e.printStackTrace();
//		}

	}


	public void log(String textmessage) {
		if (LOGGER != null) {
			LOGGER.fine(textmessage);
		}
	}
}
